package com.maxima.maximaAttendance.pojos;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;


@Entity
@Table(name="\"project\"")
@NamedQuery(name="Project.findAll", query="SELECT p FROM Project p")
public class Project {
	

	//bi-directional many-to-one association to TimeLog
	@OneToMany(mappedBy="project")
	private List<User> users;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(unique=true, nullable=false)
	private Integer id;

	@Column
	private String projectName;

	public Project() {
	}

	public Project(String projectName) {
		this.projectName=projectName;
	}
	
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

}